﻿@using DLULearningNetwork.Libs;
@model List<DLULearningNetworkModel.Account>

@for (int i = 0; i < Model.Count; i++)
{     
    <div style="float:left; width:210px; margin:3px;">
        <div style="float:left; width:50px;">
            <img src="@StringHelper.GetImageUrl(Model[i].Avatar_s,1)" style="vertical-align:middle; width:40px;height:40px;" />
        </div>
        <div style="float:left; width:136px; line-height:50px; padding:0 2px 0 2px;">
            @Model[i].Nickname_s
        </div>
        <div style="float:left; width:20px; line-height:50px;">
            <input class="cbInvite" type="checkbox" accountID="@Model[i].AccountID_u"/>
        </div>
    </div>
}

<script type="text/javascript">
    $(":checkbox.cbInvite").click(function () {
        if ($(this).is(":checked")) {
            $(this).parent().parent().css("background-color", "#c6e2f5");
        }
        else {
            $(this).parent().parent().css("background-color", "transparent");
        }
    });
</script>